package com.thyme.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.thyme.system.vo.Iec61850IedVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author nana
 * @since 2021-03-24
 */
@Repository
public interface Iec61850IedDao extends BaseMapper<Iec61850IedVo> {
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    @Insert("insert  into iec61850_IED (ied_name,ied_desc,ied_ip,create_time,update_time) values (#{iedName},#{iedDesc},#{iedIp},now(),now())")
    int insertBy(Iec61850IedVo entity);
}
